package com.xiaobias.A08;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;

/*
    singleton, prototype, request, session, application

    演示 request, session, application 作用域
    打开不同的浏览器，刷新 http://localhost:8080/test 即可查看效果
    如果 jdk > 8, 运行时请添加 --add-opens java.base/java.lang=ALL-UNNAMED
 */
@SpringBootApplication
@EnableAutoConfiguration(exclude={DataSourceAutoConfiguration.class})
public class A08Application {
    public static void main(String[] args) {
        try {
            SpringApplication.run(A08Application.class, args);
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
}
